package edu.spec.lyq.week04;

class Sheel{
        private String name;

        public Sheel(String name){
            this.name = name;
        }
        public String getName(){
            return this.name;
        }
        public void eat(){}
    }
    class Prawn{
        private String name;

        public Prawn(String name){
            this.name = name;
        }
        public String getName(){
            return this.name;
        }
        public void eat(){}
    }
    class Fish{
        private String name;

        public Fish(String name){
            this.name = name;
        }
        public String getName(){
            return this.name;
        }
        public void eat(Sheel sheel){}
        public void eat(Sheel sheel1, Sheel sheel2){}
        public void eat(Prawn prawn){}
        public void eat(Sheel sheel, Prawn prawn){
            System.out.println("我是" + this.name + "，我先吃" + sheel.getName() + "，后吃" + prawn.getName());
        }
        public void eat(Prawn prawn1, Sheel sheel1){}

    }

    class Seal{
        private String name;

        public Seal(String name){
            this.name = name;
        }
        public String getName(){
            return this.name;
        }
        public void eat(Sheel sheel){}
        public void eat(Sheel sheel1, Sheel sheel2){}
        public void eat(Prawn prawn){}
        public void eat(Sheel sheel, Prawn prawn){
            System.out.println("我是" + this.name + "，我先吃" + sheel.getName() + "，后吃" + prawn.getName());
        }
        public void eat(Prawn prawn1, Sheel sheel1){}
    }
    public class Ocean{
        public static void main(String []args){

            Fish f = new Fish("fish");
            Sheel sh = new Sheel("sheel");
            Prawn p = new Prawn("prawn");
            Seal se = new Seal("seal");

            f.eat(sh,p);
        }
}

